#include <stdio.h>

int main(int argc, char* argv[])
{
    int sum = 0;
    int *X;
    int N;

    InitializeArray(X, &N);

    #pragma omp parallel for reduction(+:sum)
    for (int i = 0; i< N; i++)
    {
        sum = sum + X[i];
    }

    printf("The sum of array elements is %d\n", sum);
    return 0;
}